<%--
  Created by IntelliJ IDEA.
  User: 。
  Date: 2019-12-05
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改新闻</title>
    <style>
        #box {
            width: 100%;
            height: 100%;
            font-size: 20px;
        }

        #ff {
            border: 2px solid #8a6d3b;
            height: 70%;
            margin: 5% auto;
            width: 60%;
            font-size: 22px;
            border-collapse: collapse
        }

        input {
            width: 80%;
            height: 50%;
        }

        p {
            display: inline-block;
            width: 19%;
            text-align: center;
        }
    </style>
</head>
<body>
<div id="box">
    <h1 style="text-align: center;margin-top: 1%">修改新闻内容</h1>
    <form method="post" action="Updata">
        <table border="1" id="ff">
            <tr>
                <td><p>编号：</p><input type="text" name="idd" value="${idnewinfo.id}" readonly="readonly"></td>
                <td><p>标题：</p><input type="text" name="title" value="${idnewinfo.title}"></td>
            </tr>
            <tr>
                <td colspan="2"><p>内容简介：</p><input type="text" name="simply" value="${idnewinfo.simply}"></td>
            </tr>
            <tr>
                <td><p>类型：</p><input type="text" name="type" value="${idnewinfo.type}"></td>
                <td><p>发布时间：</p><input type="text" name="time" value="${idnewinfo.time}"></td>
            </tr>
            <tr>
                <td colspan="2"><p style="text-align: center;margin: 1% 36%;">内容</p></td>
            </tr>
            <tr>
                <td colspan="2">
                    <textarea name="content" cols="155" rows="12"
                              style="margin: 0px 10px;">${idnewinfo.content}</textarea>
                </td>
            </tr>
            <tr style="height: 15%;">
                <td colspan="2"><input type="submit" value="修改" style="margin: 0px 32%;width: 30%;"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>